//Bird的路由模块
const express = require("express");
const router = express.Router();
//定义路由

//导出
module.exports = router;

//路由中间件
router.use(function(req, res, next) {  
    console.log(`当前时间戳：${new Date().toLocaleString()}`);  
    next();  
});

//定义路由
router.get("/",function(req,res){
    res.send("birds首页")

})
router.get("/about",function(req,res){
    res.send("birds关于首页")

})